﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using 天机万年历.自定义控件;

namespace 天机万年历
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {
        }

        private void NumericUpDown_ValueChanged(object sender, EventArgs e)
        {
            lunarControl1.Year = (int)numericUpDown1.Value;
            lunarControl1.Month = (int)numericUpDown2.Value;
        }

        private void LunarControl1_Click(object sender, LunarControl.LunarEventArgs e)
        {
            var d = e.Date;
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            //Debug.WriteLine(SyncfusionCrack.ByteArray2String(SyncfusionCrack.String2ByteArray("abc")));
            //byte[] aab = SyncfusionCrack.HexDecode("aabbccdd");
            lunarControl1.SaveToPDF("test.pdf");
        }
    }
}
